<form id="edit-form" class="form-horizontal" style="position:relative;background: #fff" role="form" data-toggle="validator" method="POST" action="">
    <div class="panel-body">
        <div id="myTabContent" class="tab-content" >
            <div class="tab-pane fade active in" id="tabs_0">
                <input type="hidden" id="row" name="data" value='<?php echo json_encode($row);?>' />
                <input type="hidden" id="id" name="row[id]" value='{$row.id}' />
                <div class="form-group">
                        <label for="c-classes_id" class="control-label col-xs-12 col-sm-2">班级名称:</label>
                        <div class="col-xs-12 col-sm-8" id="div-class_id" >
                           <select name="row[classes_id]" id="c-classes_id"  class="form-control" readonly="" disabled >
                           </select>
                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-subject_lv" class="control-label col-xs-12 col-sm-2">教学类型:</label>
                        <div class="col-xs-12 col-sm-8" id="div-subject_lv" >
                           <select name="row[subject_lv]" id="c-subject_lv"  class="form-control"  >
                           </select>
                        </div>
                   </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">教学类型:</label>
                    <div class="col-xs-12 col-sm-8" id="div-ocation_type">
                        <?php
                                $ocationtypeArray = explode(',', $row['ocation_type']);
                            ?>
                        <label for="row[ocation_type]-1"><input id="row[ocation_type]-1" name="row[ocation_type][]"
                                                                type="checkbox" value="1" <?php if(in_array(1, $ocationtypeArray)): ?>checked<?php endif; ?>/> 标准(有桌椅)</label>
                        <label for="row[ocation_type]-2"><input id="row[ocation_type]-2" name="row[ocation_type][]"
                                                                type="checkbox" value="2"  <?php if(in_array(2, $ocationtypeArray)): ?>checked<?php endif; ?>
                            /> 书画(有书画桌)</label>
                        <label for="row[ocation_type]-3"><input id="row[ocation_type]-3" name="row[ocation_type][]"
                                                                type="checkbox" value="3" { <?php if(in_array(3, $ocationtypeArray)): ?>checked<?php endif; ?>
                            /> 肢体(开阔的场地)</label>
                        <label for="row[ocation_type]-4"><input id="row[ocation_type]-4" name="row[ocation_type][]"
                                                                type="checkbox" value="4"  <?php if(in_array(4, $ocationtypeArray)): ?>checked<?php endif; ?>
                            /> 综合(有椅没桌)</label>
                    </div>
                </div>

                <div id="app">
                    <div class="form-group">
                        <label for="c-subject_lv" class="control-label col-xs-12 col-sm-2">老师岗:</label>
                        <div class="col-xs-12 col-sm-8" id="div-teacher">
                            <teacher-box  :type="''" :left-options="leftOptions" :right-options="rightOptions"></teacher-box>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-subject_lv" class="control-label col-xs-12 col-sm-2">管理岗:</label>
                        <div class="col-xs-12 col-sm-8" id="div-manger">
                            <manager-box :type="''" :left-options="leftOptions" :right-options="rightOptions"></manager-box>
                        </div>
                    </div>
                </div>

                   <div class="form-group">
                        <label for="c-ocourse_conut" class="control-label col-xs-12 col-sm-2">课程长度:</label>
                        <div class="col-xs-12 col-sm-8" id="div-ocourse_conut" >
                            <input type="number" id="c-ocourse_conut" name="row[ocourse_conut]" value="{$row.ocourse_conut}" class="form-control" title="ocourse_conut" data-rule="require num" data-rule-num="[/^[0-9\.]+$/, '只能填入数值']" placeholder="只能填入数值"  data-tip="课程长度"  />
                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-classes_per_week" class="control-label col-xs-12 col-sm-2">一周最大排课数:</label>
                        <div class="col-xs-12 col-sm-8" id="div-classes_per_week" >
                            <input type="number" id="c-classes_per_week" name="row[classes_per_week]" value="{$row.classes_per_week}" class="form-control" title="classes_per_week" data-rule="integer" placeholder="只能填入整数"  data-tip="一周几次课"  />
                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-same_classroom" class="control-label col-xs-12 col-sm-2">是否同一间教室:</label>
                        <div class="col-xs-12 col-sm-8" id="div-same_classroom" ><input  class="c-switch" id="c-same_classroom" name="row[same_classroom]" type="hidden" value="{$row.same_classroom}">
                                            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" id="aaa" data-input-id="c-switch" data-yes="1" data-no="0" >
                            <i class="fa fa-toggle-on text-success {eq name="$row.same_classroom" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                            </a>                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-same_ocation" class="control-label col-xs-12 col-sm-2">是否同一二级教学点:</label>
                        <div class="col-xs-12 col-sm-8" id="div-same_ocation" ><input  class="c-switch" name="row[same_ocation]" type="hidden" value="{$row.same_ocation}">
                                            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-switch" data-yes="1" data-no="0">
                            <i class="fa fa-toggle-on text-success {eq name="$row.same_ocation" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                            </a>                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-can_same_day" class="control-label col-xs-12 col-sm-2">是否能排在同一天:</label>
                        <div class="col-xs-12 col-sm-8" id="div-can_same_day" ><input  class="c-switch" name="row[can_same_day]" type="hidden" value="{$row.can_same_day}">
                                            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-switch" data-yes="1" data-no="0">
                            <i class="fa fa-toggle-on text-success {eq name="$row.can_same_day" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                            </a>                        </div>
                   </div>

                <div class="form-group">
                    <label for="c-daytime" class="control-label col-xs-12 col-sm-2">时段选择:</label>
                    <div class="col-xs-12 col-sm-8" id="div-daytime">
                        <?php $daytimeArray = explode(',', $row['daytime']);?>
                        <label for="row[daytime]-1">
                            <input id="row[daytime]-1" name="row[daytime][]" type="checkbox"
                                   value="1" <?php if(in_array(1, $daytimeArray)): ?>checked<?php endif; ?>/> 上午</label>
                        <label for="row[daytime]-2"><input id="row[daytime]-2" name="row[daytime][]" type="checkbox"
                            <?php if(in_array(2, $daytimeArray)): ?>checked<?php endif; ?>  value="2"/> 中午</label>
                        <label for="row[daytime]-3"><input id="row[daytime]-3" name="row[daytime][]" type="checkbox"
                            <?php if(in_array(3, $daytimeArray)): ?>checked<?php endif; ?>  value="3"/> 下午</label>
                        <label for="row[daytime]-4"><input id="row[daytime]-4" name="row[daytime][]" type="checkbox"
                            <?php if(in_array(4, $daytimeArray)): ?>checked<?php endif; ?>   value="4"/> 晚上</label>
                        <select  id="c-daytime-all"  style="display: none" multiple name="row[daytimeall][]" value="{$row.daytimeall}" class="form-control"  style="height:250px"  data-tip="时段选择"  >
                        </select>
                    </div>

                </div>
            </div>

                   <div class="form-group">
                        <label for="c-disable_week_range" class="control-label col-xs-12 col-sm-2">禁排:</label>
                        <div class="col-xs-12 col-sm-8" id="div-disable_week_range" >
                        <label for="c-disable_week_range" class="control-label col-xs-12 col-sm-2"></label>
                        <div style="margin-top:-2px">
                            <select id="c-disable_week_range" multiple data-rule=""data-select-only="true"
                                   data-multiple="false" data-field="name"  style="height:250px"
                                   class="form-control" name="row[disable_week_range][]"
                                   ></select>
                        </div>
                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-must_week_range" class="control-label col-xs-12 col-sm-2">必排:</label>
                        <div class="col-xs-12 col-sm-8" id="div-must_week_range" >
                        <label for="c-must_week_range" class="control-label col-xs-12 col-sm-2"></label>
                        <div style="margin-top:-2px">
                            <select id="c-must_week_range" multiple  data-rule="" data-select-only="true"
                                   data-multiple="false" data-field="name"  style="height:250px"
                                   class="form-control"  name="row[must_week_range][]"
                                   ></select>
                        </div>
                        </div>
                   </div>
                <div class="form-group layer-footer">
                    <label class="control-label col-xs-12 col-sm-2"></label>
                    <div class="col-xs-12 col-sm-8">
                        <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                    </div>
                </div>
            </div>
            
        </div>
    </div>
</form>

